import BasePath from "../config";

const advertisementList = {
	path: `${BasePath}/advertisement-management/advertisement-list`,
	name: 'advertisement-list',
	component: () => import('@/views/home/operate-panel/advertisement-management/advertisement-list.vue'),
	meta: {
		keepAlive: false
	}
}

const advertisementPosList = {
	path: `${BasePath}/advertisement-management/advertisement-pos-list`,
	name: 'advertisement-pos-list',
	component: () => import('@/views/home/operate-panel/advertisement-management/advertisement-pos-list.vue'),
	meta: {
		keepAlive: false
	}
}

export default {
	path: `${BasePath}/advertisement-management`,
	name: 'advertisement-management',
	component: () => import('@/views/home/operate-panel/advertisement-management/index.vue'),
	redirect:`${BasePath}/advertisement-management/advertisement-list`,
	meta: {
		keepAlive: false
	},
	children: [
		advertisementList,
		advertisementPosList
	]
}
